#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stddef.h>
#define my_offsetof(stuctName,memberName) ((size_t )&(((stuctName*)0) -> memberName))
struct s
{
	int i;
	char a;
};

int main()
{

	printf("%d\n", my_offsetof(struct s, i));
	return 0;
}